package jsyf.oa.entity.forms;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Created by 92852 on 2018/6/25.
 */
@Entity
@Table(name = "T_FORMS_CREATE", schema = "oa", catalog = "")
public class FormsCreateEntity extends BaseEntity implements Serializable {
    private String createUserId;
    private String formsName;

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public String getFormsName() {
        return formsName;
    }

    public void setFormsName(String formsName) {
        this.formsName = formsName;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", getId());
        obj.put("CREATE_TIME", getCreateTime());
        obj.put("CREATE_USER_ID", getCreateUserId());
        obj.put("FORMS_NAME", getFormsName());
        return obj;
    }

    @Override
    public String getTableName() {
       return "T_FORMS_CREATE";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("CREATE_USER_ID", "createUserId");
        obj.put("CREATE_TIME", "createTime");
        obj.put("FORMS_NAME", "formsName");
        return obj;
    }
}
